package com.welkom.everydate.services.interfaces;
import java.util.List;

import com.welkom.everydate.domain.Authority;
public interface AuthorityService {
	
	public List<Authority> getAllAuthoritys();
	public List<Authority> queryAuthoritiesByPage(Authority authority,int startIndex,int pageSize);
	public int getAuthorityTotalCountByCondition(Authority authority);
	public Authority getAuthorityById(long authorityId);
	public void saveChangesToAuthority(Authority authority);
	public void addAuthority(Authority authority);
	public void removeAuthorityById(long authorityId);
	public List<Authority> getAuthoritiesByRoleId(long roleId);
	public void removeAuthoritiesByRoleId(long roleId);
	public void addAuthoritiesToRole(List<Authority> authorities,long roleId);
}
